using System;
using System.Data;
using System.Configuration;
using System.ComponentModel;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Dimok.Data.DataSources;

namespace Data.DataSources {
	public class BorrowersDataSource : ObjectDataSourceBase {
		string svn = "t_Borrower";
		public override string SelectViewName { get { return svn; } set { svn = value; } }
		public override string InsertViewName { get { return "v_Borrower_Update"; } }
		public override string DeleteViewName { get { return "t_Borrower"; } }
		[Bindable(true)]
		public int LoanID { set { SetSelectParameter("LoanID", value); } }
		public DataView SelectEx(int LoanID, int Position) {
			UseNoLock = false;
			SelectViewName = "Borrower(@LoanID,@Pos)";
			return Select("", LoanID, Position);
		}
	}
}